package com.ssm.demo.dao.impl.typebook;

import java.util.List;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.ssm.demo.dao.impl.BaseIdaoImpl;
import com.ssm.demo.dao.mapper.typebook.ITypeBookMapper;
import com.ssm.demo.dao.typebook.ITypeBookDao;
import com.ssm.demo.model.TypeBook;
/**
 * 
* @ClassName: TypeBookDaoImpl  
* @Description: 书籍类别Dao实现  
* @author jing Lei  
* @date 2018年12月20日  
*
 */
@Repository
public class TypeBookDaoImpl extends BaseIdaoImpl<TypeBook> implements ITypeBookDao{
     @Autowired
     private ITypeBookMapper itypeBookMapper;

     @PostConstruct
     private void postconstruct(){
    	 baseMapper = itypeBookMapper;
     }
     
	@Override
	public List<TypeBook> findByName(String typeName) {
		
		return itypeBookMapper.findByTypeName(typeName);
	}

	/**
	* <p>Title: query</p>  
	* <p>Description: </p>  
	* @param queryName
	* @param queryValue
	* @return  
	* @see com.ssm.demo.dao.typebook.ITypeBookDao#query(java.lang.String, java.lang.String)  
	*/  
	
	@Override
	public List<TypeBook> query(String queryName, String queryValue) {
		return itypeBookMapper.query(queryName, queryValue);
	}
}
